<?php

include('config.php');
include('ad.php');

$c = $contents;
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
    <title><?=$c['keywords']?> - TorrentPortal</title>
    <meta http-equiv="X-UA-Compatible" content="IE=9" />

    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/jquery.lightbox-0.5.css" />
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/navbar.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/udn.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/ui-darkness/jquery-ui-1.10.3.custom.min.css"/>
    <link rel="stylesheet" type="text/css" href="http://<?=$res_server?>/res/css/jquery.mCustomScrollbar.css" />

    <script type="text/javascript">
        var udnserver = '<?=$_SERVER['SERVER_NAME']?>';
    </script>

    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery-ui-1.10.3.custom.min.js"></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.tablesorter.min.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/download.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.ddslick.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/udnutil.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/youtube.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.lightbox-0.5.js" ></script>
    <script type="text/javascript" src="http://<?=$res_server?>/res/js/jquery.lazyload.min.js" ></script>

    <script type="text/javascript">
        $(document).ready(function() {

            $("img.lazy").lazyload();

        });
    </script>

</head>
<body>
<div id="tp_container">
    <div style="height: 60px;width:1000px;">
        <div style="float:left; width:250px; padding: 20px;">
            <a title="Home" href="/">TorrentPortal.ORG</a>
        </div>
        <div style="float:left; width:500px;">
            <form id="form" name="form" method="get" style="margin-top:15px; margin-left: 10px;">
                    <input type="hidden" name="tpsearch" value="1"/>
                    <input name="title" id="search" type="text" style="width:200px" class="waterMarkInput" title="<?=lang::get('search')?>" />
            </form>
            <script type="text/javascript">
                $('.waterMarkInput').focus(function() {
                    if ($(this).val()==$(this).attr("title")) { $(this).val(""); }
                }).blur(function() {
                            if ($(this).val()=="") { $(this).val($(this).attr("title")); }
                        });
            </script>
        </div>
        <div style="float:left;padding: 20px;">
            <a href="?about=1">About &amp; Privacy</a>
        </div>
    </div>
    <?include($template);?>
</div>
</body>
</html>